import api from '../network/apis/api';
export default {
  namespaced: true,
  state: {
    data: [],
  },
  mutations: {
    setData(state, newData) {
      state.data = newData;
    },
  },
  actions: {
    async getClassify(context) {
      const data = await api.classify.getClassify();
      if (data.status) {
        context.commit('setData', data.data);
      }
    },
  },
};
